<me:UIGLLG x:Class="WPFExcelReport.THMZU"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    x:Name="TV" 
                    Loaded="Window_Loaded"
     >
    <me:UIGLLG.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
         <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIGLLG.Resources>
     <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"></RowDefinition>
           
            <RowDefinition Height="AUTO"></RowDefinition>
        </Grid.RowDefinitions>
        <DataGrid  Grid.Row="0" Grid.Column="0" 
                   VerticalAlignment="Top"  
                   AutoGenerateColumns="False"
                   EnableRowVirtualization="False"
                   VerticalScrollBarVisibility="Auto"
                   HorizontalScrollBarVisibility="Auto" 
                   HeadersVisibility="Column"           
                   IsReadOnly="True"
                   ItemsSource="{Binding Source={StaticResource vwMaster}}"  
                   IsSynchronizedWithCurrentItem="True" Name="dlgMaster" 
                >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ZUAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True"   Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=单号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=行号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUPARTIE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=缸号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZULBEHI, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=箱号}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=品种}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=日期}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUEINTKG, Converter={StaticResource ResourceKey=d1000}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=总留位数量}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=ZUENTNKG, Converter={StaticResource ResourceKey=d1000}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=已发数量}}"  Width="Auto" />
                <DataGridTextColumn Binding="{Binding Path=EF, Converter={StaticResource ResourceKey=d1000}, Mode=TwoWay}"  IsReadOnly="True" Header="{Binding Source={Localization:Translate Word=库存留位量}}"  Width="Auto" />

            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</me:UIGLLG>
